/*
 * utility.cpp
 *
 *  Created on: Jul 11, 2011
 *      Author: wilsok17
 */

#include <time.h>
#include <stdio.h>

void wait(int nanoseconds) {
  clock_t endwait;
  endwait = clock () + nanoseconds/1000 * CLOCKS_PER_SEC ;
  while (clock() < endwait) {}
}
